package com.tarena.lbs.business.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {
    
    // 定义店铺搜索消息队列
    @Bean
    public Queue storeSearchQueue() {
        return new Queue("store.search.queue", true); // true表示持久化
    }
}